package qn.easywechat.dao.entity;


import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 *
 * @author   2018-8-6
 */
@Entity
@Table(name="sysconfig")
public class SysConfig {

    /**
     *
     */
    @Id
    @Column(name="Id",nullable=false)
    private long id;

    /**
     *
     */
    @Column(name="Code",nullable=false,length=50)
    private String code;

    /**
     *
     */
    @Column(name="TypeName")
    private String typename;

    /**
     *
     */
    @Column(name="ConfigValue")
    private String configvalue;

    /**
     *
     */
    @Column(name="CreateTime",nullable=false)
    private Date createtime;



    /**
     * 设置
     * @param id
     */
    public void setId(long id){
        this.id=id;
    }

    /**
     * 获取
     * @return Id -
     */
    public long getId(){
        return this.id;
    }

    /**
     * 设置
     * @param code
     */
    public void setCode(String code){
        this.code=code;
    }

    /**
     * 获取
     * @return Code -
     */
    public String getCode(){
        return this.code;
    }

    /**
     * 设置
     * @param typename
     */
    public void setTypename(String typename){
        this.typename=typename;
    }

    /**
     * 获取
     * @return TypeName -
     */
    public String getTypename(){
        return this.typename;
    }

    /**
     * 设置
     * @param configvalue
     */
    public void setConfigvalue(String configvalue){
        this.configvalue=configvalue;
    }

    /**
     * 获取
     * @return ConfigValue -
     */
    public String getConfigvalue(){
        return this.configvalue;
    }

    /**
     * 设置
     * @param createtime
     */
    public void setCreatetime(Date createtime){
        this.createtime=createtime;
    }

    /**
     * 获取
     * @return CreateTime -
     */
    public Date getCreatetime(){
        return this.createtime;
    }


    @Override
    public String toString(){
        StringBuilder sb = new StringBuilder();
        sb.append("Sysconfig[");
        sb.append("id=");
        sb.append(id);
        sb.append(",code=");
        sb.append(code);
        sb.append(",typename=");
        sb.append(typename);
        sb.append(",configvalue=");
        sb.append(configvalue);
        sb.append(",createtime=");
        sb.append(createtime);
        sb.append("]");
        return sb.toString();
    }
}
